export default{
    namespaced:true,

    state:{
        cart:6,
    },
    getters:{
        carCh(state){
            return `wwww ${state.cart}`
        }
    },
    mutations:{
        setCount(state,a){
            a = (typeof a) === 'number' ? a : 100
            state.cart = state.cart + a
        }
    },
    actions:{
        setCount({commit}){
            commit('setCount',10)
        }
    }
}